import 'package:flutter_ahj_app/base/basewidget/HttpUtils/HttpBaseConst.dart';

class FPAPIConfiguration {
  static int pageSize = HttpBaseConst.pageSize; //分页列表数据每页数据条数
  static int pageIndex = HttpBaseConst.pageIndex; //分页列表数据请求开始页码
  //服务器地址
  static String _serverUrl = HttpBaseConst.serverUrl;

  /// 接口前缀名
  static String _apiPrefix = "ahj";

  ///服务器地址加前缀
  static String _requestUrl = _serverUrl + _apiPrefix;

  /// /v1/presetInvoice
  /// 获取预设发票列表
  /// get
  static String presetInvoice = _requestUrl + '/v1/presetInvoice';
  /// /v1/presetInvoice
  /// 获取指定供应商开票类型
  /// get
  static String suppliertype = _requestUrl + '/v1/invoice-type/supplier/type';

  // /v1/invoice/project
  // 获取已结束未开发票订单
  // get
  static String invoiceProject = _requestUrl + '/v1/contract-invoice/can';

// /v1/presetInvoice
// 保存预设发票信息
// post
  static String postPresetInvoice = _requestUrl + '/v1/presetInvoice';
// /v1/presetInvoice/{id}
// 删除预设发票
// delete
  static String deletePresetInvoiceId = _requestUrl + '/v1/presetInvoice/';
// /v1/presetInvoice/{id}
// 根据id获取预设发票信息
// get
  static String getPresetInvoiceId = _requestUrl + '/v1/presetInvoice/';
// /v1/invoice
// 获取发票历史
// get
  static String getV1Invoice = _requestUrl + '/v1/contract-invoice/has';

  // 申请作废
// get
  static String setV1Invoicecancel= _requestUrl + '/v1/contract-invoice/cancel';
// /v1/presetInvoice/default
// 获取默认预设发票信息
// get
static String getPresetInvoiceDefault = _requestUrl + '/v1/presetInvoice/default';

// /v1/presetAddress/default
/// 获取默认地址
// get
static String getPresetAddressDefault = _requestUrl + '/v1/presetAddress/default';
// /v1/presetAddress
// 预设我的地址管理
// get
  static String getMineAdress = _requestUrl + '/v1/presetAddress';

// /v1/invoice
/// 开票申请、重新开票
// post
  static String postV1Invoice = _requestUrl + '/v1/contract-invoice';

  /// 获取开票详情
// post
  static String postV1Invoicedetails = _requestUrl + '/v1/contract-invoice/details';

}
